
#ifndef STAR_H
#define STAR_H

#include <cstdlib>
#include "Vec3f.h"

class Star {

	public:
		
		Star() {
			vLoc = Vec3f(Vec3f::Random);
			vLoc *= 1400;

			size = (rand()%2) + 1;

			diffuse = new float[4];
			diffuse[0] = 1.0f;
			diffuse[1] = 0.8f + 0.2f*(rand()%100)*0.01f;
			diffuse[2] = 0.5f + 0.5f*(rand()%100)*0.01f;
			diffuse[3] = 0.1f + 0.6f*(rand()%100)*0.01f;
		}

		const int getSize() { return size; }
		const Vec3f* getLoc() { return &vLoc; }
		const float* getDiffuse() { return diffuse; }

	private:
		Vec3f vLoc;
		float* diffuse;
		int size;

};

#endif
